package com.elong.spring.resource;

import java.io.IOException;

import javax.xml.transform.Source;

import org.springframework.core.io.Resource;
import org.springframework.core.io.support.PathMatchingResourcePatternResolver;
import org.springframework.core.io.support.ResourcePatternResolver;

/**
 * 资源加载器测试
  * PatternResolverTest
  * @Title: PatternResolverTest
  * @Description: TODO
  * @author Guanguo.Gao
  * @date 2014年11月6日 上午8:39:23
  *
 */
public class PatternResolverTest {

    public static void main(String[] args) throws IOException {
        ResourcePatternResolver resolver = new PathMatchingResourcePatternResolver();
        Resource resources[] = resolver.getResources("conf/core/*");
        for(Resource resource : resources){
            System.out.println(resource.getFilename() + " " + resource.getURI() + " " + resource.getDescription());
        }
    }

}
